<?xml version="1.0" encoding="utf-8"?>
<link:linkbase 
  xmlns:link="http://www.xbrl.org/2003/linkbase" 
  xmlns:generic="http://xbrl.org/2008/generic" 
  xmlns:formula="http://xbrl.org/2008/formula" 
  xmlns:variable="http://xbrl.org/2008/variable" 
  xmlns:xff="http://www.xbrl.org/2010/function/formula" 
  xmlns:eg="http://xbrl.org/formula/conformance/example" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns:xs="http://www.w3.org/2001/XMLSchema" 
  xmlns:xlink="http://www.w3.org/1999/xlink" 
  xsi:schemaLocation="
  http://www.xbrl.org/2003/linkbase
    http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd
  http://xbrl.org/2008/generic
    ../../core_schemas/generic-link.xsd 
  http://xbrl.org/2008/formula
    ../../core_schemas/formula.xsd
  http://xbrl.org/2008/variable
    ../../core_schemas/variable.xsd"
  >
  
  <link:arcroleRef arcroleURI="http://xbrl.org/arcrole/2008/variable-set" xlink:href="../../core_schemas/variable.xsd#variable-set" xlink:type="simple"/>

  <link:arcroleRef arcroleURI="http://xbrl.org/arcrole/2008/variable-filter" xlink:href="../../core_schemas/variable.xsd#variable-filter" xlink:type="simple"/>
  <link:roleRef roleURI="http://www.xbrl.org/2008/role/link" xlink:href="../../core_schemas/generic-link.xsd#standard-link-role" xlink:type="simple"/>

  <generic:link xlink:type="extended" xlink:role="http://www.xbrl.org/2008/role/link">
    <formula:formula xlink:type="resource" xlink:label="formula1" 
      value="
         concat(
           ( if ( exists(xff:uncovered-aspect(
                        'dimension',
                        QName('http://xbrl.org/formula/conformance/example','Location'))) )
             then local-name-from-QName( xff:uncovered-aspect(
                        'dimension',
                        QName('http://xbrl.org/formula/conformance/example','Location')) )
             else 'no-location' ),
            ',',
            xs:string( xff:uncovered-aspect(
                        'dimension',
                        QName('http://xbrl.org/formula/conformance/example','HeightDimension'))
                 /eg:peakHeight )
          )"
      source="v"
      aspectModel="dimensional" implicitFiltering="true" />

    <!-- nothing is covered on the variable -->
    <variable:factVariable xlink:type="resource" xlink:label="factvar1" 
      bindAsSequence="false"  />
    <variable:variableArc xlink:type="arc" xlink:to="factvar1" xlink:from="formula1" 
      xlink:arcrole="http://xbrl.org/arcrole/2008/variable-set" order="1" 
      name="v" />
    
  </generic:link>
</link:linkbase>
